StoreEngine\Addons\Stripe\StripeCustomer C

Total Complexity 113
Dependencies 12
Dependents 3
Total lines 908
Lines of code 527
Logical lines of code 255
Comment lines 266
Methods 32
Properties 3

Methods 32

Method Rating Maintainability Complexity Lines of code
get_billing_data_field()
A
44 15 46
generate_customer_request()
A
41 9 54
add_source()
A
46 8 41
map_customer_data()
A
45 7 41
attach_source()
A
53 8 22
get_payment_methods()
A
47 7 35
create_customer()
S
49 6 30
get_sources()
S
51 6 25
update_customer()
S
50 5 27
maybe_create_customer()
S
53 5 22
delete_source()
S
54 4 20
detach_payment_method()
S
55 3 20
set_default_payment_method()
S
54 2 21
get_customer_preferred_locale()
S
48 1 35
set_default_source()
S
55 2 19
get_customer_locale()
S
79 2 3
clear_cache()
S
66 2 8
__construct()
S
72 2 6
get_user()
S
78 2 3
is_source_already_attached_error()
S
77 2 3
is_no_such_customer_error()
S
77 2 3
update_or_create_customer()
S
69 2 7
get_existing_customer()
S
65 2 8
get_id()
S
82 1 3
set_id()
S
80 1 3
get_id_from_meta()
S
79 1 3
update_id_in_meta()
S
78 1 3
delete_id_from_meta()
S
79 1 3
recreate_customer()
S
77 1 4
get_user_id()
S
82 1 3
set_customer_data()
S
81 1 3
set_user_id()
S
80 1 3